<!--
 * @Author: 胡海
 * @Date: 2020-11-18 20:45:30
 * @LastEditors: 胡海
 * @LastEditTime: 2020-11-18 21:03:36
 * @Description: 
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-model双向数据绑定</title>
</head>
<body>
    <div id="app">
        <input type="text" v-model='messaage'>
        <p>{{messaage}}</p>
    </div>

    <script>
    //数据 -> 页面
    //页面 -> 数据
    var message = 'hello miaov';
    var vm = new vue({
        el: '#app',
        data:{
            message
        }
    })
    </script>
</body>
</html>